{% extends 'login.html' %}

{% block title %}
    <title>个人博客 | 用户注册</title>
{% endblock %}

{% block main_title %}
    <a href="/login">登入</a>
    <a href="/sign" class="active">注册</a>
    <a href="/">去首页</a>
{% endblock %}


{% block form %}
    <input ref="sign_form_name" v-model="sign_form.name" type="text" placeholder="请输入用户名" class="sign_input">
    <input ref="sign_form_pwd" v-model="sign_form.pwd" type="password" placeholder="请输入密码" class="sign_input">
    <input ref="sign_form_re_pwd" v-model="sign_form.re_pwd" type="password" placeholder="请输入确认密码" class="sign_input">
    <div class="code">
        <input type="text" ref="sign_form_code" v-model="sign_form.code" placeholder="请输入验证码" class="sign_input">
        <img @click="get_random_code" src="/static/my/img/login/code.png" alt="">
    </div>
    <button @click="sign">注册</button>
{% endblock %}